package cc.rengu.igas.bsps.facade.result;

import java.io.Serializable;

/**
 * 接口应答类
 * Created by 王成 on 2017/6/27.
 */
public class Result<T> implements Serializable {
    private boolean success;
    private T result;

    public Result() {
    }

    public Result(boolean success, T result) {
        this.success = success;
        this.result = result;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
